package volkov.ja.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class TestLogger {
	private Logger log;
	private String session;

	public TestLogger(Class<?> cl, String session) {
		this.log = LoggerFactory.getLogger(cl);
		this.session = session;
	}
	
	public TestLogger(String cl, String session) {
		this.log = LoggerFactory.getLogger(cl);
		this.session = session;
	}

	public void debug(String msg) {
		log.debug(msg, session);
	}
	
	public void info(String msg) {
		log.debug(msg, session);
	}
	
	public void warn(String msg) {
		log.debug(msg, session);
	}
	
	public void error(String msg) {
		log.debug(msg, session);
	}
	
	public void debug(String msg, Object obj) {
		log.debug(msg, session, obj);
	}
	
	public void info(String msg, Object obj) {
		log.debug(msg, session, obj);
	}
	
	public void warn(String msg, Object obj) {
		log.debug(msg, session, obj);
	}
	
	public void error(String msg, Object obj) {
		log.debug(msg, session, obj);
	}
	
	public void debug(String msg, Object obj, Object obj2) {
		log.debug(msg, session, obj, obj2);
	}
	
	public void info(String msg, Object obj, Object obj2) {
		log.debug(msg, session, obj, obj2);
	}
	
	public void warn(String msg, Object obj, Object obj2) {
		log.debug(msg, session, obj, obj2);
	}
	
	public void error(String msg, Object obj, Object obj2) {
		log.debug(msg, session, obj, obj2);
	}

	public void setLoggerForClass(Class<?> cl) {
		this.log = LoggerFactory.getLogger(cl);
	}
	
	public void setLoggerForClass(String cl) {
		this.log = LoggerFactory.getLogger(cl);
	}
	
	public void setSessionId(String session) {
		this.session = session;
	}
}
